package com.ncst.backend.mapper;

import com.ncst.backend.domain.MedicalTechnology;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 医技项目Mapper接口
 */
@Mapper
public interface MedicalTechnologyMapper {

    MedicalTechnology selectById(@Param("id") Integer id);
    List<MedicalTechnology> selectAll();
    List<MedicalTechnology> selectByCondition(MedicalTechnology medicalTechnology);
    List<MedicalTechnology> selectByName(@Param("techName") String techName);
    List<MedicalTechnology> selectByPage(@Param("offset") Integer offset, @Param("pageSize") Integer pageSize);
    List<MedicalTechnology> selectByPageWithCondition(@Param("offset") Integer offset, @Param("pageSize") Integer pageSize,
                                                     @Param("medicalTechnology") MedicalTechnology medicalTechnology);
    Long countAll();
    Long countByCondition(MedicalTechnology medicalTechnology);
    int insert(MedicalTechnology medicalTechnology);
    int insertBatch(@Param("list") List<MedicalTechnology> list);
    int updateById(MedicalTechnology medicalTechnology);
    int deleteById(@Param("id") Integer id);
    int deleteByIds(@Param("ids") List<Integer> ids);

    List<MedicalTechnology> getChuZhi();

    MedicalTechnology getById(Integer id);
}
